import java.util.Scanner;

public class Ex5_5{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter three numbers: ");
		double num1 = input.nextDouble();
		double num2 = input.nextDouble();
		double num3 = input.nextDouble();
		displaySortedNumbers(num1, num2, num3);
	}

	public static void displaySortedNumbers
		(double num1, double num2, double num3){
		double t;
		if (num1 <num2){
			t = num1;
			num1 = num2;
			num2 = t;
		}

		if (num1 <num3){
			t = num1;
			num1 = num3;
			num3 = t;
		}

		if (num2 <num3){
			t = num2;
			num2 = num3;
			num3 = t;
		}

		System.out.printf("%.1f, %.1f, %.1f\n", num1, num2, num3);
	}
}
